package cn.hpclub.server.util;

public class ServerConfig{
    // public static final String SYSCONFIG_HOST_URL = "hostPrefix";
    // public static final String SYSCONFIG_FILE_URL = "filePathPrefix";

    // private static ServerConfig instance = new ServerConfig();

    // private Prop serverConfig;
    // private ConcurrentHashMap<String, String> configMapList;

    /**
     * 加入到HashMap
     */
    /*
     * private ServerConfig(){ serverConfig =
     * PropKit.use("serverConfig.properties"); configMapList = new
     * ConcurrentHashMap<String, String>(); }
     */

    /**
     * @Title: getConfigValueByKey
     * @Description:先再HashMap中取，没有则读取配置文件并加入到HashMap中
     * @param key
     * @return String
     */
    /*
     * public String getConfigValueByKey(String key){
     * if(configMapList.containsKey(key)){ return configMapList.get(key); }
     * 
     * String value = serverConfig.get(key); if(StrKit.isBlank(value)){ return
     * ""; }
     * 
     * configMapList.put(key, value);
     * 
     * return value; }
     */

    /*
     * public static ServerConfig getInstance(){
     * 
     * if(null == instance){ synchronized(ServerConfig.class){ if(null ==
     * instance){ instance = new ServerConfig(); } } }
     * 
     * return instance; }
     */

}
